package adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import bean.GoodsCourse;
import student.andlei.com.student.R;

/**
 * author : ChenHuiMing
 * date : 2018/9/22
 * email : 907399255@qq.com
 * description : 商城年级
 */
public class MallCourseAdapter extends BaseQuickAdapter<GoodsCourse.CourseRoom, BaseViewHolder> {

    public MallCourseAdapter(int layoutResId, @Nullable List<GoodsCourse.CourseRoom> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GoodsCourse.CourseRoom item) {
        helper.setText(R.id.tv_roomname, item.serial)
                .setText(R.id.tv_title, item.room_name).setText(R.id.tv_time, item.room_date + "  " + item.start_time + "-" + item.end_time);
    }
}
